package de.stefanocke.roo.wicket.templates

import de.stefanocke.roo.wicket.Stereotypes

class HomePageTemplate extends JavaHtmlTemplate{
	
	override String javaClassNameWhenNew(){
		"HomePage"
	}
	
	override String stereotype(){
		Stereotypes::HOME_PAGE
	}
		
	override buildJavaContents(){
		val BasePage = import_(typeof(BasePageTemplate).generatedJavaType)
		'''
		/**
		 * The home page.
		 */
		«stereotypeAnnotation»
		public class «simpleTypeName» extends «BasePage» {
		
			private static final long serialVersionUID = 1L;
		
		}
		'''
	}
	
	override buildHtmlBody(){
		'''
    	<wicket:extend>
    		Welcome.
    	</wicket:extend>
		'''
	}
}